package com.qianfeng.smartdevices.service;

import com.github.pagehelper.PageInfo;
import com.qianfeng.smartdevices.event.UpdateDeviceStatusEvent;
import com.qianfeng.smartdevices.pojo.Device;

public interface DeviceService {

    PageInfo<Device> findAllDevice(int page,int limit,String address,String status,Long categoryid,Long areaid);

    void addDevice(Device device) throws Exception ;
    void updateDevice(Device device) throws Exception ;

    void deleteDeviceById(String[] ids);

    void sendCommand(String uuid,String command);

    void updateStatus(String uuid,String status);

    void onEvent(UpdateDeviceStatusEvent event);
}
